Skip to content

make simulator native target respect noise_model for gate selection#240

Open
dlyongemallo wants to merge 1 commit intoqiskit-community:mainfrom
dlyongemallo:210-transpile_forte_1_native_gate_set
Open

make simulator native target respect noise_model for gate selection#240
dlyongemallo wants to merge 1 commit intoqiskit-community:mainfrom
dlyongemallo:210-transpile_forte_1_native_gate_set

Conversation

@dlyongemallo
Copy link
Copy Markdown

Summary

When a simulator is used with noise_model='forte-1', transpilation will use Forte's native entangling gates ZZ instead of the default/Aria's native MS gates. Fixes #210.

Details and comments

Partial support was added in #231 but that change only checked the backend name to choose between ZZ and MS, which only works for QPU backends but not the simulators (the name ionq_simulator doesn't contain forte).

This PR checks noise_model in addition to the backend name. It also rebuilds the target dynamically for native simulators. This is necessary because noise_model is a runtime option (which can change after backend creation).

Copilot AI review requested due to automatic review settings January 29, 2026 09:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #210 by making the simulator's native target respect the noise_model option for gate selection. When a native simulator is configured with noise_model='forte-1', transpilation will now use Forte's native ZZ gates instead of Aria's MS gates.

Changes:

  • Modified the target property to dynamically rebuild the target for native simulators based on the current noise_model
  • Updated _make_target() to check both backend name and noise_model option when selecting between ZZ and MS gates
  • Added comprehensive tests to verify the dynamic target behavior and end-to-end transpilation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
qiskit_ionq/ionq_backend.py Made target property dynamic for native simulators and added noise_model check to gate selection logic
test/ionq_backend/test_base_backend.py Added tests for dynamic target updates and regression test for issue #210

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlyongemallo dlyongemallo force-pushed the 210-transpile_forte_1_native_gate_set branch from 9984ebe to 795181f Compare January 29, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transpile using the native gate set of Forte 1

2 participants